package com.example.scan.service.impl;

import com.example.scan.entity.GameScoreInfo;
import com.example.scan.mapper.GameScoreInfoMapper;
import com.example.scan.service.IGameScoreInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author txm
 * @since 2020-08-05
 */
@Service
public class GameScoreInfoServiceImpl extends ServiceImpl<GameScoreInfoMapper, GameScoreInfo> implements IGameScoreInfoService {
    @Override
    @Transactional
    public void updateScoreById(Integer id, BigDecimal money) {
        getBaseMapper().updateScoreById( id,  money);
    }
}
